package sk.tuke.client.components.buttons;

import com.smartgwt.client.widgets.events.ClickHandler;
import com.smartgwt.client.widgets.menu.MenuButton;
import sk.tuke.client.interfaces.LayoutFactory;

public class ApplicationMenuButton extends MenuButton {

	LayoutFactory factory;

	public ApplicationMenuButton() {
	}

	public ApplicationMenuButton(String title, LayoutFactory factory, ClickHandler clickHandler) {
		super();
		setTitle(title);
		this.factory = factory;
		addClickHandler(clickHandler);
	}

	public void setFactory(LayoutFactory factory) {
		this.factory = factory;
	}

	public LayoutFactory getFactory() {
		return factory;
	}

}
